package com.myHospital.biz.impl;

import com.myHospital.biz.UserRoleBiz;
import com.myHospital.dao.UserRoleDao;
import com.myHospital.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userRoleBiz")
public class UserRoleBizImpl implements UserRoleBiz {
    @Autowired
    private UserRoleDao userRoleDao;
    
    public int
    addBlacklist(int id) {
       return userRoleDao.addBlacklist(id);
    }

    @Override
    public List<User> getBlacklist() {
        return userRoleDao.getBlacklist();
    }

    @Override
    public int deleteBlacklist(int id) {
        return userRoleDao.deleteBlacklist(id);
    }

    @Override
    public int addAdmin(int id, int role) {
        return userRoleDao.addAdmin(id,role);
    }

    @Override
    public int deleteAdmin(int id) {
        return userRoleDao.deleteAdmin(id);
    }

}
